<?php

class CommentsController extends Base {
  use CURD;

  public $tableName = 'comments';
  protected $deleted_at = true;
  protected $isTree = false;
  protected $likeField = 'title'; 
  protected $parentKey = 'pid';
  protected $relations = [
    'store_id' => ['table'=>'stores','as'=>'store','pri'=>'id','cols'=>['id','title'],'where'=>[],'type'=>'one'],
  ];
}
